﻿using NHibernate;
using NHibernateEntities.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NHibernateEntities.Dal
{
    public class CategoryDal
    {
        public static Category[] GetCategories(ISession session)
        {
            IList<Category> result = null;

            result = session.CreateCriteria<Category>().List<Category>();

            return result.ToArray();
        }
    }
}
